<template>
  <div>
    <button @click="jia">+</button>
    <h3>{{ count }}</h3>
    <button @click="jian">-</button>

    <Home :setName="name"></Home>
  </div>
</template>

<script>
import Home from "../components/Home.vue"
export default {
  data() {
    return{
        count: 0,
        name:"乔强别看了"
    }
  },
  components:{
    Home
  },
  methods: {
    jia() {
      this.count += 1;
    },
    jian() {
        this.count -= 1;
    },
  },
};
</script>

<style>
</style>